// .electron-vite/vite.config.mts
import { join as join2 } from "path";
import { defineConfig } from "file:///G:/mjs/electron-vite/electron-vite-template-mini-main/node_modules/vite/dist/node/index.js";
import vuePlugin from "file:///G:/mjs/electron-vite/electron-vite-template-mini-main/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import vueJsx from "file:///G:/mjs/electron-vite/electron-vite-template-mini-main/node_modules/@vitejs/plugin-vue-jsx/dist/index.mjs";

// .electron-vite/plugin/vite-ikaros-tools.ts
var vite_ikaros_tools_default = () => {
  let command = "";
  return {
    name: "ikaros-tools",
    configResolved(resolvedConfig) {
      command = resolvedConfig.command;
    },
    buildStart: () => {
      if (command.includes("serve")) {
        globalThis.__name = (target, value) => Object.defineProperty(target, "name", { value, configurable: true });
      }
    }
  };
};

// .electron-vite/utils.ts
import { config } from "file:///G:/mjs/electron-vite/electron-vite-template-mini-main/node_modules/dotenv/lib/main.js";
import { join } from "path";
import minimist from "file:///G:/mjs/electron-vite/electron-vite-template-mini-main/node_modules/minimist/index.js";
var __vite_injected_original_dirname = "G:\\mjs\\electron-vite\\electron-vite-template-mini-main\\.electron-vite";
var argv = minimist(process.argv.slice(2));
var rootResolve = (...pathSegments) => join(__vite_injected_original_dirname, "..", ...pathSegments);
var getEnv = () => argv["m"];
var getEnvPath = () => {
  if (String(typeof getEnv()) === "boolean" || String(typeof getEnv()) === "undefined") {
    return rootResolve("env/.env");
  }
  return rootResolve(`env/.${getEnv()}.env`);
};
var getConfig = () => config({ path: getEnvPath() }).parsed;

// .electron-vite/vite.config.mts
var __vite_injected_original_dirname2 = "G:\\mjs\\electron-vite\\electron-vite-template-mini-main\\.electron-vite";
function resolve(dir) {
  return join2(__vite_injected_original_dirname2, "..", dir);
}
var config2 = getConfig();
var root = resolve("src/renderer");
var vite_config_default = defineConfig({
  mode: config2 && config2.NODE_ENV,
  root,
  define: {
    __CONFIG__: config2,
    __ISWEB__: Number(config2 && config2.target)
  },
  resolve: {
    alias: {
      "@renderer": root,
      "@store": join2(root, "/store/modules")
    }
  },
  base: "./",
  build: {
    outDir: config2 && config2.target ? resolve("dist/web") : resolve("dist/electron/renderer"),
    emptyOutDir: true,
    target: "esnext",
    cssCodeSplit: false
  },
  server: {},
  plugins: [vueJsx(), vuePlugin(), vite_ikaros_tools_default()],
  optimizeDeps: {}
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLmVsZWN0cm9uLXZpdGUvdml0ZS5jb25maWcubXRzIiwgIi5lbGVjdHJvbi12aXRlL3BsdWdpbi92aXRlLWlrYXJvcy10b29scy50cyIsICIuZWxlY3Ryb24tdml0ZS91dGlscy50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiY29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2Rpcm5hbWUgPSBcIkc6XFxcXG1qc1xcXFxlbGVjdHJvbi12aXRlXFxcXGVsZWN0cm9uLXZpdGUtdGVtcGxhdGUtbWluaS1tYWluXFxcXC5lbGVjdHJvbi12aXRlXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJHOlxcXFxtanNcXFxcZWxlY3Ryb24tdml0ZVxcXFxlbGVjdHJvbi12aXRlLXRlbXBsYXRlLW1pbmktbWFpblxcXFwuZWxlY3Ryb24tdml0ZVxcXFx2aXRlLmNvbmZpZy5tdHNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL0c6L21qcy9lbGVjdHJvbi12aXRlL2VsZWN0cm9uLXZpdGUtdGVtcGxhdGUtbWluaS1tYWluLy5lbGVjdHJvbi12aXRlL3ZpdGUuY29uZmlnLm10c1wiO2ltcG9ydCB7IGpvaW4gfSBmcm9tIFwicGF0aFwiO1xuaW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSBcInZpdGVcIjtcbmltcG9ydCB2dWV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